﻿using System.Collections.Generic;
using Yun.Interface;
using Yun.Site.Response;

namespace Yun.Site.Request
{
    /// <summary>
    /// 获取创建上传视频的信息
    /// yun.aliyun.vod.createuploadvideo
    /// </summary>
    public class CreateUploadVideoRequest:ITopRequest<CreateUploadVideoResponse>
    {
        /// <summary>
        /// 文件名字
        /// </summary>
        public string FileName { get; set; }


        /// <summary>
        /// 文件尺寸
        /// </summary>
        public long FileSize { get; set; }


        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        /// 分类ID
        /// </summary>
        public int CatId { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public string Tags { get; set; }


        public string GetApiName()
        {
            return "yun.aliyun.vod.createuploadvideo";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"filename",FileName},
                {"filesize",FileSize},
                {"title",Title},
                {"catid",CatId},
                {"tags",Tags}
            };
            return parameters;
        }

        public void Validate()
        {
        }
    }
}
